package patternChainOfResp;

public class AHandler {
	AHandler next;
	public AHandler(){
		this(null);
	}
	public AHandler(AHandler next){
		this.next=next;
	}
	MyString handle(MyString s){
		if(next!=null){
			return s=next.handle(s);
		}
		return s;
	}
}
